﻿<div id="PropertiesNodeDialog">
<div class="hd">属性</div>
<div class="bd">
<table border="1" width="100%" id="table1" height="341">
	<tr>
		<td rowspan="2" width="120" valign=top align="center">
		<table border="0" width="100%" id="table3">
			<tr>
				<td width="20"></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td width="20"></td>
				<td>&nbsp;&nbsp;<a href="#" onclick="changeTag('general')">常规</a></td>
			</tr>
			<tr>
				<td width="20"></td>
				<td>&nbsp;&nbsp;<a href="#" onclick="changeTag('handler')">事件</a></td>
			</tr>
			<tr>
				<td width="20"></td>
				<td>&nbsp;&nbsp;<a href="#"
					onclick="changeTag('exceptionhandler')">异常</a></td>
			</tr>
		</table>
		</td>
		<td height="20" bgcolor="#EBE9ED">&nbsp;<b>常规属性</b></td>
	</tr>
	<tr>
		<td bgcolor="#EBE9ED" valign=top>
		<div id="general">
		<table border="0" width="500">
			<tr>
				<td width="139">名字</td>
				<td width="629" align=left><input name="general_name"
					id="general_name"></td>
		</table>
		</div>
		<div id="handler" style="display: none">
		<table border="0" width="500">
			<tr>
				<td width="139">事件处理</td>
				<td width="629" align=left><select name="variables_action"
					size="1" onchange="initVariables(this, variables)">
					<option value="" selected>请选择一个事件处理</option>
				</select></td>
			</tr>
		</table>
		<table border="0" width="500">
			<tr>
				<td width="235">定义工作流变量:</td>
				<td></td>
			</tr>
			<tr>
				<td height="22" width="235">
				<table border="1" cellpadding=0 cellspacing=0 width="100%"
					id="variables" name=tb1 bgcolor="#FFFFFF" bordercolor="#C0C0C0">
					<tr>
						<td width="46%">名字</td>
						<td>值</td>
						<td></td>
					</tr>
				</table>
				</td>
				<td height="22" valign=top>
				<table border="0" width="100%">
					<tr>
						<td><input type=button value="添加" onclick="addVariable()"></td>
					</tr>
					<tr>
						<td><input type=button value="删除" onclick="removeVarible()"></td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		</div>
		<div id="exceptionhandler" style="display: none">
		<table border="0" width="500">
			<tr>
				<td width="139">异常</td>
				<td width="629" align=left><select
					name="exceptionvariables_action" size="1"
					onchange="initVariables(this, exceptionvariables)">
					<option value="" selected>请选择一个异常事件</option>
				</select></td>
			</tr>
		</table>
		<table border="0" width="500">
			<tr>
				<td width="235">定义工作流变量:</td>
				<td></td>
			</tr>
			<tr>
				<td height="22" width="235">
				<table border="1" cellpadding=0 cellspacing=0 width="100%"
					id="exceptionvariables" name=tb2 bgcolor="#FFFFFF"
					bordercolor="#C0C0C0">
					<tr>
						<td width="46%">名字</td>
						<td>值</td>
						<td></td>
					</tr>

				</table>
				</td>
				<td height="22" valign=top>
					<table border="0" width="100%">
						<tr>
							<td><input type=button value="添加" onclick="addVariable()"></td>
						</tr>
						<tr>
							<td><input type=button value="删除" onclick="removeVarible()"></td>
						</tr>
				</table>
				</td>
			</tr>
		</table>
		</div>
		</td>
	</tr>
</table>

</div>
</div>

<div id="PropertiesTaskNodeDialog">
<div class="hd">属性</div>
<div class="bd">
<table border="1" width="100%" id="table1" height="341">
	<tr>
		<td width="120" rowspan="2" valign=top>
		<table border="0" width="100%" id="table3">
			<tr>
				<td width="20"></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td width="20"></td>
				<td>&nbsp;&nbsp;<a href="#" onclick="changeTaskTag('taskname')">常规</a></td>
			</tr>
			<tr>
				<td width="20"></td>
				<td>&nbsp;&nbsp;<a href="#" onclick="changeTaskTag('event')">事件</a></td>
			</tr>
			<tr>
				<td width="20"></td>
				<td>&nbsp;&nbsp;<a href="#"
					onclick="changeTaskTag('controller')">控制器</a></td>
			</tr>
			<tr>
				<td width="20"></td>
				<td>&nbsp;&nbsp;<a href="#"
					onclick="changeTaskTag('assignment')">任务分配</a></td>
			</tr>
		</table>
		</td>
		<td height="20" bgcolor="#EBE9ED">&nbsp;<b>常规属性</b></td>
	</tr>
	<tr>
		<td bgcolor="#EBE9ED" valign=top>
		<div id="general">
		<table border="0" width="500">
			<tr>
				<td width="178">任务节点名称</td>
				<td width="584"><input name="Name"></td>
			</tr>
		</table>
		</div>
		<div id="taskname" style="display: none">
		<table border="0" width="500">
			<tr>
				<td width="178">任务名称</td>
				<td width="584"><input name="Taskname"></td>
			</tr>
			<tr>
				<td width="178">任务描述</td>
				<td width="584"><input name="Description"></td>
			</tr>
			<tr>
				<td width="178">任务期限</td>
				<td width="584"><input name="Duedate"></td>
			</tr>
		</table>
		</div>
		<div id="event" style="display: none">
		<table border="0" width="500">
			<tr>
				<td colspan="2">进入节点:</td>
				<td colspan="2">离开节点:</td>
			</tr>
			<tr>
				<td>事件名字</td>
				<td><input name="Enter_Actionname" size="25"></td>
				<td>事件名字</td>
				<td><input name="Leave_Actionname" size="25"></td>
			</tr>
			<tr>
				<td>事件类</td>
				<td><input name="Enter_Actionclass" size="25"></td>
				<td>事件类</td>
				<td><input name="Leave_Actionclass" size="25"></td>
			</tr>
			<tr>
				<td>匹配</td>
				<td><input name="Enter_Mapping" size="25"></td>
				<td>匹配</td>
				<td><input name="Leave_Mapping" size="25"></td>
			</tr>
		</table>
		</div>
		<div id="controller" style="overflow:auto;height:300px">
		<table border="0" width="500" id="controllertable">


		</table>
		<table border="0" width="500">
			<tr>
				<td width="235">定义工作流变量:</td>
				<td></td>
			</tr>
			<tr>
				<td height="22" width="300">
				<table border="1" cellpadding=0 cellspacing=0 width="100%"
					id="variablesTask" name=tb1 bgcolor="#FFFFFF" bordercolor="#C0C0C0">
					<tr>
						<td width="46%">变量名</td>
						<td>可读</td>
						<td>可写</td>
						<td>必填</td>
						<td>删除</td>
					</tr>
				</table>
				</td>
				<td height="22" valign=top>
				<table border="0" width="100%">
					<tr>
						<td><input type=button value="添加" onclick="addTaskVariable()"></td>
					</tr>
					<tr>
						<td><input type=button value="删除"
							onclick="removeTaskVarible()"></td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		</div>
		<div id="assignment" style="display: none">任务分配:<br />
		<hr />
		<br />
		<table border="0">
			<tr>
				<td>请选择：
					<input type="radio" name="type" id="group_type" value="组别" onclick="javascript:displayDiv(this);"/>组别
					<input type="radio" name="type" id="user_type" value="用户" onclick="javascript:displayDiv(this);"/>用户
				</td>
			</tr>
		</table>
		<div style="display:none" id="actorDiv">
			<table border="0" width="500">
				<tr>
					<td width="200"><label id="actors_label"></label></td>
					<td width="688" align=left><input name="actors" size=35></td>
				</tr>
			</table>
			<table>
			<tr>
				<td width="80"><label>请选择局</label></td>
				<td>
					<select id="groups" onchange="AssignGroup(this);">
						<option value="从化市爱国卫生运动委员会">从化市爱国卫生运动委员会</option>
						<option value="从化市财政局">从化市财政局</option>
						<option value="从化市城市规划局">从化市城市规划局</option>
						<option value="从化市档案局">从化市档案局</option>
						<option value="从化市对外贸易经济合作局">从化市对外贸易经济合作局</option>
						<option value="从化市发展和改革局">从化市发展和改革局</option>
						<option value="从化市公安局消防大队">从化市公安局消防大队</option>
						<option value="从化市公路路政管理所">从化市公路路政管理所</option>
						<option value="从化市国土资源和房屋管理局">从化市国土资源和房屋管理局</option>
						<option value="从化市环境保护局">从化市环境保护局</option>
						<option value="从化市建设和市政管理局">从化市建设和市政管理局</option>
						<option value="从化市交通局">从化市交通局</option>
						<option value="从化市教育局">从化市教育局</option>
						<option value="从化市经济贸易局">从化市经济贸易局</option>
						<option value="从化市科学技术局">从化市科学技术局</option>
						<option value="从化市劳动和社会保障局">从化市劳动和社会保障局</option>
						<option value="从化市林业局">从化市林业局</option>
						<option value="从化市民政局">从化市民政局</option>
						<option value="从化市农业机械化管理中心">从化市农业机械化管理中心</option>
						<option value="从化市农业局">从化市农业局</option>
						<option value="从化市人口和计划生育局">从化市人口和计划生育局</option>
						<option value="从化市人事局">从化市人事局</option>
						<option value="从化市水利局">从化市水利局</option>
						<option value="从化市卫生局">从化市卫生局</option>
						<option value="从化市文化广电新闻出版局">从化市文化广电新闻出版局</option>
						<option value="从化市物价局">从化市物价局</option>
						<option value="从化市畜牧兽医渔业局">从化市畜牧兽医渔业局</option>
						<option value="从化市自来水公司">从化市自来水公司</option>
						<option value="广州市从化质量技术监督局">广州市从化质量技术监督局</option>
						<option value="国家外汇管理局从化市支局">国家外汇管理局从化市支局</option>
					</select>
				</td>
			</tr>
			<tr>
				<td width="80"><label id="actors_user"></label></td>
				<td>		
					<select id="users" onchange="AssignUser(this);">
					</select>
				</td>
			</tr>
			</table>
		</div>
		<br/><hr/><br/>
		</div>
		</td>
	</tr>
</table>
</div>
</div>

<div id="PropertiesDecisionNodeDialog">
<div class="hd">属性</div>
<div class="bd">
<table border="1" width="100%" id="table1" height="341">
	<tr>
		<td width="191" rowspan="2" valign=top>
		<table border="0" width="100%" id="table2">
			<tr>
				<td width="30"></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td width="30"></td>
				<td><a href="#" onclick="changeDecisionTag('condition')">Properties</a></td>
			</tr>
		</table>
		</td>
		<td height="20" bgcolor="#EBE9ED">&nbsp;<b>General Properties</b></td>
	</tr>
	<tr>
		<td bgcolor="#EBE9ED" valign=top>
		<div id="general">
		<table border="0" width="500">
			<tr>
				<td width="178">名字</td>
				<td width="584"><input name="Name_"></td>
			</tr>
		</table>
		</div>
		<div id="condition" style="display: none">
		<table border="0" width="500">
			<tr>
				<td width="178">条件</td>
				<td width="584"><input name="ConditionExpression"></td>
			</tr>
		</table>
		</div>
		</td>
	</tr>
</table>

</div>
</div>


<div id="PropertiesForkNodeDialog">
<div class="hd">属性</div>
<div class="bd">
<table border="1" width="100%" id="table1" height="341">
	<tr>
		<td width="191" rowspan="2" valign=top>
		<table border="0" width="100%" id="table2">
			<tr>
				<td width="30"></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td width="30"></td>
				<td><a href="#" onclick="changeDecisionTag('general')">常规</a></td>
			</tr>
		</table>
		</td>
		<td height="20" bgcolor="#EBE9ED">&nbsp;<b>常规属性</b></td>
	</tr>
	<tr>
		<td bgcolor="#EBE9ED" valign=top>
		<div id="general">
		<table border="0" width="500">
			<tr>
				<td width="178">名字</td>
				<td width="584"><input name="forknode_name"></td>
			</tr>
		</table>
		</div>
		</td>
	</tr>
</table>
</div>
</div>


<div id="PropertiesJoinNodeDialog">
<div class="hd">属性</div>
<div class="bd">
<table border="1" width="100%" id="table1" height="341">
	<tr>
		<td width="191" rowspan="2" valign=top>
		<table border="0" width="100%" id="table2">
			<tr>
				<td width="30"></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td width="30"></td>
				<td><a href="#" onclick="changeDecisionTag('general')">属性</a></td>
			</tr>
		</table>
		</td>
		<td height="20" bgcolor="#EBE9ED">&nbsp;<b>常规属性</b></td>
	</tr>
	<tr>
		<td bgcolor="#EBE9ED" valign=top>
		<div id="general">
		<table border="0" width="500">
			<tr>
				<td width="178">名字</td>
				<td width="584"><input name="joinnode_name"></td>
			</tr>
		</table>
		</div>
		</td>
	</tr>
</table>
<input type=button value="确定" onclick="joinSend()"></div>
</div>


<div id="ProcessEventDialog">
<div class="hd">工作流属性</div>
<div class="bd">
<table border="1" width="100%" id="table1" height="341">
	<tr>
		<td width="140" rowspan="2" valign=top>
		<table border="0" width="100%" id="table3">
			<tr>
				<td width="20"></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td width="20"></td>
				<td><a href="#" onclick="changeProcessTag('processgeneral')">常规</a></td>
			</tr>
			<tr>
				<td width="20"></td>
				<td><a href="#" onclick="changeProcessTag('processevent')">事件</a></td>
			</tr>
		</table>
		</td>
		<td height="20" bgcolor="#EBE9ED">&nbsp;<b>常规属性</b></td>
	</tr>
	<tr>
		<td bgcolor="#EBE9ED" valign=top>
		<div id="processgeneral">
		<table border="0" width="500">
			<tr>
				<td width="139">工作流名称</td>
				<td width="629" align=left><input name="process_name"
					id="process_name"></td>
		</table>
		</div>
		<div id="processevent" style="display: none">
		<table border="0" width="500">
			<tr>
				<td width="150">发送信号前</td>
				<td width="584"><input name="Beforesignal" size="25"></td>
			</tr>
			<tr>
				<td width="150">发送信号后</td>
				<td width="584"><input name="Aftersignal" size="25"></td>
			</tr>
			<tr>
				<td width="150">进入节点</td>
				<td width="584"><input name="Nodeenter" size="25"></td>
			</tr>
			<tr>
				<td width="150">离开节点</td>
				<td width="584"><input name="Nodeleave" size="25"></td>
			</tr>
			<tr>
				<td width="150">工作流开始</td>
				<td width="584"><input name="Processstart" size="25"></td>
			</tr>
			<tr>
				<td width="150">工作流结束</td>
				<td width="584"><select name="Processend" size="1">
					<option value="" selected>请选择一个事件处理</option>
					<option
						value="com.reallysi.service.workflow.delivery.action.ProcessEndEventHandler">ProcessEndEventHandle</option>
				</select></td>
			</tr>
		</table>
		</div>

		</td>
	</tr>
</table>
<div align="center"><input type=button value="保存"
	onclick="processSend()"></div>

</div>
</div>

<div id="ActionhandlerDialog">
<div class="hd">属性</div>
<div class="bd">
<table border="0" width="100%" id="table1" height="341">
	<tr>
		<td valign=top>

		<table border="0" width="100%">
			<tr>
				<td>属性名</td>
				<td align=left><input type=text name="ah_name" id="ah_name">
				</td>
			</tr>
			<tr>
				<td width="10%">类型</td>
				<td width="90%" align=left><select name="ah_type" id="ah_type"
					size="1">
					<option value="normal">常规</option>
					<option value="exception">异常</option>
				</select></td>
			</tr>
			<tr>
				<td>类</td>
				<td align=left><input type=text size=43 name="ah_class"
					id="ah_class"></td>
			</tr>
		</table>
		<table border="0" width="500">
			<tr>
				<td width="235">定义工作流变量：</td>
				<td></td>
			</tr>
			<tr>
				<td height="22" width="235">
				<table border="1" cellpadding=0 cellspacing=0 width="100%"
					id="ah_variables" name=tb1 bgcolor="#FFFFFF" bordercolor="#C0C0C0">
					<tr>
						<td width="80%">工作流名称</td>
						<td></td>
					</tr>
				</table>
				</td>
				<td height="22" valign=top>
				<table border="0" width="100%">
					<tr>
						<td><input type=button value="添加" onclick="ah_addVariable()"></td>
					</tr>
					<tr>
						<td><input type=button value="删除"
							onclick="ah_removeVarible()"></td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		</td>
	</tr>
</table>

<div align="center"><input type=button value="保存"
	onclick="SetActionhandler()"><font color="#FF0000"><label
	id="ah_message"></label></font></div>

</div>
</div>

<div id="NodeValuesDialog">
<div class="hd">节点值列表</div>
<div class="bd">
<table border="0" width="100%">
	<tr>
		<td width="235"><label id="valuelisttitle">给变量添加一个新的值：</label></td>
	</tr>
	<tr>
		<td height="22" width="80%">
		<table border="1" cellpadding=0 cellspacing=0 width="100%"
			id="nodeValueList" name=tb2 bgcolor="#FFFFFF" bordercolor="#C0C0C0">
			<tr>
				<td width="80%">变量值</td>
			</tr>
		</table>
		<input type=button value="确定" onclick="setNodeValues()"></td>
	</tr>
</table>
</div>
</div>